class DevelopmentConfig:
    DEBUG = True
    SECRET_KEY = 'your-secret-key-change-in-production'
    
    # JWT配置
    JWT_SECRET_KEY = 'your-jwt-secret-key-change-in-production-make-it-very-long-and-random'
    JWT_ACCESS_TOKEN_EXPIRES = 30
    JWT_REFRESH_TOKEN_EXPIRES = 60
    
    # Redis配置
    REDIS_HOST = 'localhost'
    REDIS_PORT = 6379
    REDIS_DB = 0
    REDIS_PASSWORD = None
    
    # 数据库配置
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@localhost:3306/h2505a?charset=utf8mb4'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_ECHO = False  # 开发时可设为True查看SQL语句
    
    # CORS配置
    CORS_ORIGINS = ['http://localhost:5173', 'http://127.0.0.1:5173']
    
    # 白名单（不需要token验证的接口）
    WHITE_LIST = ['/api/user/login', '/api/user/reg', '/api/user/refresh_token', '/']